<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="keywords" content="Media Source 提取示例">
  <meta name="description" content="Media Source 提取示例, Momo's Blog, LuckyMomo">
  <title>Media Source 提取示例</title>
  <link rel="stylesheet" href="./DPlayer.min.css">
  <style>

  #dplayer {
    position: absolute;
    top: 12%;
    left: 10%;
    width: 80%;
    height: 80%;
  }
  </style>
</head>
<body>

<div id="dplayer"></div>
</body>
<script>
  var _hmt = _hmt || [];
  (function () {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?1f12b0865d866ae1b93514870d93ce89";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>
<script src="./hls.min.js"></script>
<script src="./DPlayer.min.js"></script>
<script>
  new DPlayer({
    container: document.getElementById('dplayer'),
    screenshot: true,
    video: {
      url: 'http://1257120875.vod2.myqcloud.com/0ef121cdvodtransgzp1257120875/3055695e5285890780828799271/v.f230.m3u8',
    },
  });
</script>
</html>